/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package com.srcptit.trainning.huongpq.btvn1;

import java.util.Scanner;

/**
 *
 * @author Admin_Pro
 */
public class Bai6 {//cach chuyen so thanh xau va nguoc lai?
    public static String dao(long n){
        String tong="";
        char tmp;
        while(n!=0){
            tong = tong + (char)(n%10+48);
            n/=10;
        }
        return tong;
    }
    public static void main(String[] args) {
        final long MIN = 100,MAX = 1000;
        long i;
        Scanner sc = new Scanner(System.in);
        System.out.println("cac so thuan nghich co 6 chu so la: ");
        for(i=MIN;i<MAX;i++){
            System.out.println(i +""+ dao(i));
        }
    }
}
